{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e25.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 14:33:58
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity field1.dta"
{txt}
{com}. 
. gen t = .
{txt}(614 missing values generated)

{com}. replace t = 5 if beslutsform == 1
{txt}(67 real changes made)

{com}. replace t = 5 if beslutsform == 2
{txt}(61 real changes made)

{com}. replace t = 0 if beslutsform == 3
{txt}(54 real changes made)

{com}. replace t = 1 if beslutsform == 4
{txt}(59 real changes made)

{com}. replace t = 5 if beslutsform == 5
{txt}(71 real changes made)

{com}. replace t = 5 if beslutsform == 6
{txt}(75 real changes made)

{com}. replace t = 5 if beslutsform == 7
{txt}(68 real changes made)

{com}. replace t = 5 if beslutsform == 8
{txt}(68 real changes made)

{com}. replace t = 5 if beslutsform == 9
{txt}(82 real changes made)

{com}. 
. drop if t == 5
{txt}(492 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{res}{txt}(1 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log pseudolikelihood = {res:-144.87303}  
Iteration 1:{space 3}log pseudolikelihood = {res:-144.87303}  

Structural equation model{col 49}Number of obs{col 67}= {res}       112
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log pseudolikelihood{col 20}= {res}-144.87303

{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4706799{col 26}{space 2} .0716207{col 37}{space 1}    6.57{col 46}{space 3}0.000{col 54}{space 4}  .330306{col 67}{space 3} .6110538
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0079956{col 26}{space 2} .0140554{col 37}{space 1}    0.57{col 46}{space 3}0.569{col 54}{space 4}-.0195525{col 67}{space 3} .0355437
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .126389{col 26}{space 2} .0470099{col 37}{space 1}    2.69{col 46}{space 3}0.007{col 54}{space 4} .0342512{col 67}{space 3} .2185268
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4530333{col 26}{space 2} .0428097{col 37}{space 1}   10.58{col 46}{space 3}0.000{col 54}{space 4} .3691278{col 67}{space 3} .5369387
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1048305{col 26}{space 2} .0757524{col 37}{space 1}   -1.38{col 46}{space 3}0.166{col 54}{space 4}-.2533025{col 67}{space 3} .0436414
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1504563{col 26}{space 2} .0555489{col 37}{space 1}    2.71{col 46}{space 3}0.007{col 54}{space 4} .0415824{col 67}{space 3} .2593302
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6490954{col 26}{space 2} .0626923{col 37}{space 1}   10.35{col 46}{space 3}0.000{col 54}{space 4} .5262207{col 67}{space 3} .7719701
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0352444{col 26}{space 2} .0068712{col 54}{space 4} .0240514{col 67}{space 3} .0516464
{txt}     var(e.p){c |}{col 14}{res}{space 2}  .075091{col 26}{space 2} .0074266{col 54}{space 4}  .061859{col 67}{space 3} .0911534
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       112{col 27}        .{col 38} -144.873{col 49}     5{col 58} 299.7461{col 69} 313.3386
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4706799{col 26}{space 2} .0716207{col 37}{space 1}    6.57{col 46}{space 3}0.000{col 54}{space 4}  .330306{col 67}{space 3} .6110538
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0079956{col 26}{space 2} .0140554{col 37}{space 1}    0.57{col 46}{space 3}0.569{col 54}{space 4}-.0195525{col 67}{space 3} .0355437
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .126389{col 26}{space 2} .0470099{col 37}{space 1}    2.69{col 46}{space 3}0.007{col 54}{space 4} .0342512{col 67}{space 3} .2185268
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1048305{col 26}{space 2} .0757524{col 37}{space 1}   -1.38{col 46}{space 3}0.166{col 54}{space 4}-.2533025{col 67}{space 3} .0436414
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1504563{col 26}{space 2} .0555489{col 37}{space 1}    2.71{col 46}{space 3}0.007{col 54}{space 4} .0415824{col 67}{space 3} .2593302
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2}-.0493416{col 26}{space 2} .0355244{col 37}{space 1}   -1.39{col 46}{space 3}0.165{col 54}{space 4}-.1189681{col 67}{space 3} .0202848
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0708168{col 26}{space 2} .0300312{col 37}{space 1}    2.36{col 46}{space 3}0.018{col 54}{space 4} .0119568{col 67}{space 3} .1296768
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4706799{col 26}{space 2} .0716207{col 37}{space 1}    6.57{col 46}{space 3}0.000{col 54}{space 4}  .330306{col 67}{space 3} .6110538
{txt}{space 11}t {c |}{col 14}{res}{space 2} -.041346{col 26}{space 2} .0289498{col 37}{space 1}   -1.43{col 46}{space 3}0.153{col 54}{space 4}-.0980866{col 67}{space 3} .0153946
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1972058{col 26}{space 2} .0471383{col 37}{space 1}    4.18{col 46}{space 3}0.000{col 54}{space 4} .1048165{col 67}{space 3} .2895952
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1048305{col 26}{space 2} .0757524{col 37}{space 1}   -1.38{col 46}{space 3}0.166{col 54}{space 4}-.2533025{col 67}{space 3} .0436414
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1504563{col 26}{space 2} .0555489{col 37}{space 1}    2.71{col 46}{space 3}0.007{col 54}{space 4} .0415824{col 67}{space 3} .2593302
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       112
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0708168{col 26}{space 2} .0304152{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4} .0112042{col 67}{space 3} .1304294
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .1972058{col 26}{space 2} .0515767{col 37}{space 1}    3.82{col 46}{space 3}0.000{col 54}{space 4} .0961172{col 67}{space 3} .2982944
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       112
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .07081677{col 27}{space 2}-.0017945{col 38}{space 2} .03041515{col 51}{space 2} .0143095{col 63}{space 1} .1370733{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0196627{col 63}{space 1} .1455991{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .19720581{col 27}{space 2}-.0000961{col 38}{space 2} .05157675{col 51}{space 2} .0957912{col 63}{space 1} .3016597{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}  .097549{col 63}{space 1} .3049238{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )    , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       112
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2}-.0493416{col 26}{space 2} .0280815{col 37}{space 1}   -1.76{col 46}{space 3}0.079{col 54}{space 4}-.1043804{col 67}{space 3} .0056971
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} -.041346{col 26}{space 2} .0453614{col 37}{space 1}   -0.91{col 46}{space 3}0.362{col 54}{space 4}-.1302528{col 67}{space 3} .0475607
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       112
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2}-.04934163{col 27}{space 2} .0009762{col 38}{space 2} .02808152{col 51}{space 2}-.1076029{col 63}{space 1} .0010985{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.1147303{col 63}{space 1}-.0044783{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.04134604{col 27}{space 2} .0009636{col 38}{space 2} .04536143{col 51}{space 2}-.1333269{col 63}{space 1} .0470796{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.1355391{col 63}{space 1} .0454524{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       106
                                                {txt}F(3, 102)         =  {res}     2.98
                                                {txt}Prob > F          = {res}    0.0348
                                                {txt}R-squared         = {res}    0.0759
                                                {txt}Root MSE          =    {res} .48965

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}-.3048202{col 26}{space 2} .1037656{col 37}{space 1}   -2.94{col 46}{space 3}0.004{col 54}{space 4}-.5106387{col 67}{space 3}-.0990017
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.0145669{col 26}{space 2}  .174288{col 37}{space 1}   -0.08{col 46}{space 3}0.934{col 54}{space 4}-.3602663{col 67}{space 3} .3311324
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .0094338{col 26}{space 2} .2471645{col 37}{space 1}    0.04{col 46}{space 3}0.970{col 54}{space 4}-.4808158{col 67}{space 3} .4996834
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6100111{col 26}{space 2} .1492804{col 37}{space 1}    4.09{col 46}{space 3}0.000{col 54}{space 4} .3139141{col 67}{space 3}  .906108
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e25.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 14:36:01
{txt}{.-}
{smcl}
{txt}{sf}{ul off}